package com.lvt.example.thinking.in.spring.questions.L21.aop.example01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * desc：class
 *
 * @author LT
 * @date 2022/10/24
 */
@RestController
public class AopController {

    @Autowired
    private ElectricService electricService;

    @GetMapping("charge")
    public void chargeTest() throws InterruptedException {
        electricService.charge();
    }
}
